<?php

Yii::import('common.models._base.BaseCorporateProgram');

class CorporateProgram extends BaseCorporateProgram
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	
	
	public function rules() {
		return array(
			array('profiles_id, users_id, bank_name, account_number, IFS_code, PAN, branch_name, account_holder_name, account_type, service_tax, TDS', 'required'),
			array('profiles_id, users_id', 'numerical', 'integerOnly'=>true),
			array('bank_name, account_number, IFS_code, PAN, branch_name, account_holder_name, account_type, service_tax, TDS', 'length', 'max'=>45),
			array('id, bank_name, account_number, IFS_code, PAN, branch_name, account_holder_name, account_type, service_tax, TDS, profiles_id, users_id', 'safe'),
			array('id, bank_name, account_number, IFS_code, PAN, branch_name, account_holder_name, account_type, service_tax, TDS, profiles_id, users_id', 'safe', 'on'=>'search'),

		);
	}
}